<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LinkHub - 拉新活动分享平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link
        href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap"
        rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #4a6fa5;
            --secondary: #6b8cbc;
            --accent: #f9a826;
            --content: #28a745;
            /* 查看内容按钮颜色 */
            --light: #f8f9fa;
            --dark: #343a40;
            --gray: #e9ecef;
            --gray-dark: #adb5bd;
            --success: #28a745;
            --danger: #dc3545;
            --text: #495057;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            --radius: 8px;
            --transition: all 0.3s ease;
        }

        body {
            font-family: 'Noto Sans SC', sans-serif;
            background-color: #f5f7fa;
            color: var(--text);
            line-height: 1.6;
            padding-bottom: 50px;
        }

        .container {
            width: 100%;
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 头部样式 */
        header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 15px 0;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
            transition: var(--transition);
        }

        header.scrolled {
            padding: 10px 0;
            background: linear-gradient(135deg, var(--primary), var(--primary));
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            font-family: 'Noto Serif SC', serif;
            font-size: 1.8rem;
            font-weight: 700;
            transition: var(--transition);
        }

        header.scrolled .logo {
            font-size: 1.6rem;
        }

        .logo i {
            margin-right: 10px;
            font-size: 2rem;
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav li {
            margin-left: 25px;
        }

        nav a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            padding: 8px 0;
            position: relative;
        }

        nav a:hover,
        nav a.active {
            color: white;
        }

        nav a.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--accent);
            border-radius: 3px;
        }

        .user-actions {
            display: flex;
            align-items: center;
        }

        .btn {
            display: inline-block;
            padding: 10px 20px;
            border-radius: var(--radius);
            font-weight: 500;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            font-size: 1rem;
        }

        .btn-primary {
            background-color: var(--accent);
            color: white;
        }

        .btn-outline {
            background: transparent;
            border: 2px solid rgba(255, 255, 255, 0.7);
            color: white;
            margin-right: 15px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .btn:active {
            transform: translateY(0);
        }

        /* 搜索区域 */
        .search-section {
            padding: 40px 0;
            background-color: white;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
        }

        .search-container {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .search-container h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--dark);
            font-weight: 700;
            font-family: 'Noto Serif SC', serif;
        }

        .search-container p {
            font-size: 1.1rem;
            color: var(--text);
            margin-bottom: 30px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-box {
            display: flex;
            max-width: 600px;
            margin: 0 auto;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            border-radius: var(--radius);
            overflow: hidden;
            position: relative;
        }

        .search-box input {
            flex: 1;
            padding: 15px 20px;
            border: none;
            font-size: 1rem;
            background-color: white;
            outline: none;
        }

        .search-box button {
            padding: 0 25px;
            background-color: var(--primary);
            color: white;
            border: none;
            cursor: pointer;
            transition: var(--transition);
        }

        .search-box button:hover {
            background-color: var(--secondary);
        }

        /* 搜索建议 */
        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: white;
            border-radius: 0 0 var(--radius) var(--radius);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
            z-index: 10;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .search-suggestions.show {
            max-height: 300px;
            border-top: 1px solid var(--gray);
        }

        .suggestion-item {
            padding: 12px 20px;
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .suggestion-item:hover {
            background-color: var(--light);
        }

        .suggestion-item i {
            margin-right: 10px;
            color: var(--primary);
            width: 20px;
            text-align: center;
        }

        /* 分类筛选 */
        .categories {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin: 30px 0;
        }

        .category-btn {
            padding: 10px 20px;
            background-color: var(--light);
            border: 1px solid var(--gray);
            border-radius: 30px;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .category-btn:hover,
        .category-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* 主要内容区 */
        .main-content {
            margin-bottom: 50px;
        }

        .sorting {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--gray);
        }

        .sorting h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
        }

        .sort-options select {
            padding: 8px 15px;
            border-radius: var(--radius);
            border: 1px solid var(--gray);
            background-color: white;
            font-family: inherit;
            cursor: pointer;
            transition: var(--transition);
        }

        .sort-options select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
        }

        /* 链接卡片 - 五列布局 */
        .link-cards {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            margin-top: 20px;
        }

        .card {
            background: white;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .card.expired::before {
            content: '已过期';
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: var(--danger);
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 500;
            z-index: 1;
        }

        .card-header {
            padding: 15px;
            background-color: var(--light);
            border-bottom: 1px solid var(--gray);
            display: flex;
            align-items: center;
        }

        .app-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: linear-gradient(135deg, #6b8cbc, #4a6fa5);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            color: white;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .app-info {
            overflow: hidden;
        }

        .app-info h3 {
            font-size: 1.1rem;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .app-info .category {
            font-size: 0.8rem;
            color: var(--secondary);
            background-color: rgba(107, 140, 188, 0.1);
            padding: 2px 8px;
            border-radius: 30px;
            display: inline-block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .card-body {
            padding: 15px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .time-info {
            font-size: 0.75rem;
            color: #6c757d;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
        }

        .rewards {
            display: flex;
            margin-bottom: 15px;
            background-color: rgba(249, 168, 38, 0.1);
            border-radius: var(--radius);
            padding: 12px;
            flex-wrap: wrap;
        }

        .reward {
            flex: 1;
            min-width: 50%;
            padding: 5px;
        }

        .reward-icon {
            font-size: 1.4rem;
            color: var(--accent);
            margin-bottom: 5px;
        }

        .reward-title {
            font-size: 0.8rem;
            color: var(--text);
            margin-bottom: 3px;
        }

        .reward-value {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--dark);
        }

        .description {
            margin-bottom: 15px;
            color: var(--text);
            font-size: 0.85rem;
            line-height: 1.5;
            flex-grow: 1;
        }

        .rules {
            background-color: rgba(233, 236, 239, 0.5);
            padding: 12px;
            border-radius: var(--radius);
            margin-bottom: 15px;
        }

        .rules h4 {
            font-size: 0.85rem;
            margin-bottom: 6px;
            color: var(--dark);
        }

        .rules ul {
            padding-left: 18px;
            font-size: 0.8rem;
        }

        .rules li {
            margin-bottom: 4px;
        }

        /* 卡片按钮区域 */
        .card-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: auto;
        }

        .copy-btn,
        .view-btn {
            display: block;
            width: 100%;
            padding: 10px;
            text-align: center;
            border-radius: var(--radius);
            font-weight: 500;
            transition: var(--transition);
            cursor: pointer;
            font-size: 0.9rem;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .copy-btn {
            background-color: var(--primary);
            color: white;
        }

        .view-btn {
            background-color: var(--content);
            color: white;
        }

        .copy-btn:hover:not(:disabled) {
            background-color: var(--secondary);
        }

        .view-btn:hover {
            background-color: #218838;
        }

        .copy-btn:disabled {
            background-color: var(--gray);
            color: var(--gray-dark);
            cursor: not-allowed;
        }

        /* 卡片底部样式 */
        .card-footer {
            padding: 12px 15px;
            border-top: 1px solid var(--gray);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: #6c757d;
        }

        .author {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .author-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 500;
            flex-shrink: 0;
        }

        .author-name {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100px;
        }

        .actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .action-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            transition: var(--transition);
            color: #6c757d;
            padding: 3px 5px;
            border-radius: 4px;
        }

        .action-btn:hover {
            color: var(--primary);
            background-color: rgba(74, 111, 165, 0.1);
        }

        .action-btn.report-btn {
            position: relative;
        }

        .action-btn.report-btn:hover::after {
            content: '举报';
            position: absolute;
            top: -25px;
            right: 0;
            background-color: var(--dark);
            color: white;
            padding: 3px 6px;
            border-radius: 4px;
            font-size: 0.7rem;
            white-space: nowrap;
            z-index: 2;
        }

        .action-btn.favorited .fa-heart {
            color: var(--danger);
        }

        /* 骨架屏 */
        .skeleton-container {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            margin-top: 20px;
        }

        .skeleton-card {
            background: white;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            height: 100%;
        }

        .skeleton-header {
            padding: 15px;
            background-color: var(--light);
            border-bottom: 1px solid var(--gray);
            display: flex;
            align-items: center;
        }

        .skeleton-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background-color: var(--gray);
            margin-right: 12px;
            animation: pulse 1.5s infinite;
        }

        .skeleton-text {
            height: 12px;
            background-color: var(--gray);
            border-radius: 4px;
            animation: pulse 1.5s infinite;
        }

        .skeleton-title {
            width: 80%;
            margin-bottom: 8px;
            height: 16px;
        }

        .skeleton-category {
            width: 50%;
        }

        .skeleton-body {
            padding: 15px;
        }

        .skeleton-time {
            width: 60%;
            margin-bottom: 15px;
        }

        .skeleton-rewards {
            display: flex;
            margin-bottom: 15px;
            gap: 10px;
        }

        .skeleton-reward {
            flex: 1;
            height: 60px;
            background-color: var(--gray);
            border-radius: var(--radius);
            animation: pulse 1.5s infinite;
        }

        .skeleton-description {
            height: 40px;
            margin-bottom: 15px;
            animation: pulse 1.5s infinite;
        }

        .skeleton-rules {
            height: 80px;
            background-color: var(--gray);
            border-radius: var(--radius);
            margin-bottom: 15px;
            animation: pulse 1.5s infinite;
        }

        .skeleton-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .skeleton-button {
            height: 40px;
            background-color: var(--gray);
            border-radius: var(--radius);
            animation: pulse 1.5s infinite;
        }

        .skeleton-footer {
            padding: 12px 15px;
            border-top: 1px solid var(--gray);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .skeleton-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: var(--gray);
            animation: pulse 1.5s infinite;
        }

        .skeleton-author {
            width: 60px;
            margin-left: 8px;
        }

        .skeleton-actions {
            display: flex;
            gap: 15px;
        }

        .skeleton-action {
            width: 30px;
            height: 15px;
            background-color: var(--gray);
            border-radius: 4px;
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            display: none;
        }

        .empty-state.show {
            display: block;
        }

        .empty-state i {
            font-size: 5rem;
            color: var(--gray);
            margin-bottom: 20px;
        }

        .empty-state h3 {
            font-size: 1.5rem;
            color: var(--dark);
            margin-bottom: 10px;
        }

        .empty-state p {
            color: var(--text);
            max-width: 500px;
            margin: 0 auto 20px;
        }

        /* 分页 */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 40px;
            gap: 10px;
        }

        .pagination-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 1px solid var(--gray);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .pagination-btn:hover:not(:disabled) {
            border-color: var(--primary);
            color: var(--primary);
        }

        .pagination-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .pagination-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* 模态框 */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal.show {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background-color: white;
            border-radius: var(--radius);
            width: 100%;
            max-width: 700px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }

        .modal.show .modal-content {
            transform: translateY(0);
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--gray);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modal-header-content {
            display: flex;
            align-items: center;
        }

        .modal-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: white;
            font-size: 1.5rem;
        }

        .modal-title-container h3 {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }

        .modal-category {
            font-size: 0.9rem;
            color: var(--secondary);
            background-color: rgba(107, 140, 188, 0.1);
            padding: 3px 10px;
            border-radius: 30px;
            display: inline-block;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--gray-dark);
            transition: var(--transition);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            color: var(--danger);
            background-color: rgba(220, 53, 69, 0.1);
        }

        .modal-body {
            padding: 20px;
        }

        .modal-section {
            margin-bottom: 25px;
        }

        .modal-section h4 {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .modal-section h4 i {
            color: var(--primary);
        }

        .modal-time {
            font-size: 1rem;
            color: var(--text);
            padding: 10px 15px;
            background-color: var(--light);
            border-radius: var(--radius);
            margin-bottom: 15px;
        }

        .rewards-modal {
            display: flex;
            gap: 20px;
            margin-bottom: 15px;
        }

        .reward-modal {
            flex: 1;
            background-color: rgba(249, 168, 38, 0.1);
            padding: 20px;
            border-radius: var(--radius);
            text-align: center;
        }

        .reward-modal-icon {
            font-size: 2rem;
            color: var(--accent);
            margin-bottom: 10px;
        }

        .reward-modal-title {
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 10px;
        }

        .reward-modal-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
        }

        .description-modal {
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 15px;
        }

        .rules-modal {
            background-color: rgba(233, 236, 239, 0.5);
            padding: 20px;
            border-radius: var(--radius);
        }

        .rules-modal ul {
            padding-left: 20px;
        }

        .rules-modal li {
            margin-bottom: 10px;
            line-height: 1.6;
        }

        .modal-footer {
            padding: 15px 20px;
            border-top: 1px solid var(--gray);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .modal-footer .btn {
            padding: 10px 25px;
        }

        /* 响应式设计 */
        @media (max-width: 1400px) {

            .link-cards,
            .skeleton-container {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 1200px) {

            .link-cards,
            .skeleton-container {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 992px) {

            .link-cards,
            .skeleton-container {
                grid-template-columns: repeat(2, 1fr);
            }

            .header-content {
                flex-wrap: wrap;
            }

            nav ul {
                margin-top: 15px;
                flex-wrap: wrap;
                justify-content: center;
            }

            nav li {
                margin: 5px 10px;
            }

            .rewards-modal {
                flex-direction: column;
            }
        }

        @media (max-width: 768px) {

            .link-cards,
            .skeleton-container {
                grid-template-columns: 1fr;
            }

            .header-content {
                flex-direction: column;
                text-align: center;
            }

            nav ul {
                margin: 15px 0;
            }

            .user-actions {
                margin-top: 15px;
                justify-content: center;
                width: 100%;
            }

            .author-name {
                max-width: 80px;
            }

            .search-container h1 {
                font-size: 2rem;
            }

            .modal-content {
                width: 95%;
            }
        }

        @media (max-width: 576px) {
            .btn {
                padding: 8px 15px;
                font-size: 0.9rem;
            }

            .btn-outline {
                margin-right: 10px;
            }

            .sorting {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .sort-options {
                width: 100%;
            }

            .sort-options select {
                width: 100%;
            }

            .modal-header {
                padding: 15px;
            }

            .modal-icon {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }

            .modal-title-container h3 {
                font-size: 1.3rem;
            }
        }

        /* 卡片计数和标题 */
        .cards-count {
            font-size: 1rem;
            color: var(--primary);
            background-color: rgba(74, 111, 165, 0.1);
            padding: 4px 12px;
            border-radius: 30px;
            margin-left: 10px;
        }

        /* 页脚 */
        footer {
            background-color: var(--dark);
            color: rgba(255, 255, 255, 0.7);
            padding: 30px 0 15px;
            margin-top: 50px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-column h4 {
            color: white;
            margin-bottom: 15px;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column li {
            margin-bottom: 10px;
        }

        .footer-column a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .footer-column a:hover {
            color: white;
            padding-left: 5px;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .slide-up {
            animation: slideUp 0.5s ease forwards;
        }

        .pulse {
            animation: pulse 1s ease-in-out;
        }

        /* 加载指示器 */
        .loading-indicator {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
    </style>
</head>

<body>
    <!-- 头部导航 -->
    <header id="main-header">
        <div class="container header-content">
            <div class="logo">
                <i class="fas fa-link"></i>
                <span>云合智享</span>
            </div>
            <nav>
                <ul>
                    <li><a href="boke.html" class="active">首页</a></li>

                    <li><a href="./faxain.html">发现</a></li>
                    <li><a href="./guangchang.html">广场</a></li>
                    <li><a href="./ermen.html">热门</a></li>
                    <li><a href="./fenlie.html">分类</a></li>

                </ul>
            </nav>
            <div class="user-actions">
                <a href="zhuce.html" class="btn btn-outline">登录</a>
                <a href="publish.html" class="btn btn-primary">发布链接</a>
            </div>
        </div>
    </header>

    <!-- 搜索区域 -->
    <section class="search-section">
        <div class="container search-container">
            <h1>发现优质拉新活动</h1>
            <p>LinkHub 汇集全网优质软件拉新活动，帮助用户轻松找到有价值的邀请链接，同时让您的链接获得更多曝光</p>
            <div class="search-box">
                <input type="text" id="search-input" placeholder="搜索软件名称、类别或奖励...">
                <button><i class="fas fa-search"></i></button>
                <div id="search-suggestions" class="search-suggestions"></div>
            </div>
            <div class="categories">
                <div class="category-btn active" data-category="all">全部</div>
                <div class="category-btn" data-category="cloud">网盘存储</div>
                <div class="category-btn" data-category="finance">金融支付</div>
                <div class="category-btn" data-category="shopping">电商购物</div>
                <div class="category-btn" data-category="life">外卖生活</div>
                <div class="category-btn" data-category="social">社交娱乐</div>
                <div class="category-btn" data-category="tools">工具效率</div>
                <div class="category-btn" data-category="travel">旅行出行</div>
                <div class="category-btn" data-category="education">学习办公</div>
            </div>
        </div>
    </section>

    <!-- 主要内容区 -->
    <div class="container main-content">
        <div class="sorting">
            <h2>最新拉新活动 <span class="cards-count">24个活动</span></h2>
            <div class="sort-options">
                <select>
                    <option>最新发布</option>
                    <option>最受欢迎</option>
                    <option>奖励最高</option>
                    <option>即将截止</option>
                </select>
            </div>
        </div>

        <!-- 空状态 -->
        <div class="empty-state">
            <i class="fas fa-search"></i>
            <h3>未找到相关活动</h3>
            <p>尝试使用不同的关键词搜索，或浏览其他分类查看更多拉新活动。</p>
            <button class="btn btn-primary" id="reset-filters">查看全部活动</button>
        </div>

        <!-- 骨架屏 -->
        <div id="skeleton-container" class="skeleton-container">
            <!-- 骨架屏卡片 1 -->
            <div class="skeleton-card">
                <div class="skeleton-header">
                    <div class="skeleton-icon"></div>
                    <div>
                        <div class="skeleton-text skeleton-title"></div>
                        <div class="skeleton-text skeleton-category"></div>
                    </div>
                </div>
                <div class="skeleton-body">
                    <div class="skeleton-text skeleton-time"></div>
                    <div class="skeleton-rewards">
                        <div class="skeleton-reward"></div>
                        <div class="skeleton-reward"></div>
                    </div>
                    <div class="skeleton-text skeleton-description"></div>
                    <div class="skeleton-rules"></div>
                    <div class="skeleton-buttons">
                        <div class="skeleton-button"></div>
                        <div class="skeleton-button"></div>
                    </div>
                </div>
                <div class="skeleton-footer">
                    <div style="display: flex; align-items: center;">
                        <div class="skeleton-avatar"></div>
                        <div class="skeleton-text skeleton-author"></div>
                    </div>
                    <div class="skeleton-actions">
                        <div class="skeleton-action"></div>
                        <div class="skeleton-action"></div>
                    </div>
                </div>
            </div>

            <!-- 骨架屏卡片 2-5 与卡片1相同结构 -->
            <div class="skeleton-card">
                <div class="skeleton-header">
                    <div class="skeleton-icon"></div>
                    <div>
                        <div class="skeleton-text skeleton-title"></div>
                        <div class="skeleton-text skeleton-category"></div>
                    </div>
                </div>
                <div class="skeleton-body">
                    <div class="skeleton-text skeleton-time"></div>
                    <div class="skeleton-rewards">
                        <div class="skeleton-reward"></div>
                        <div class="skeleton-reward"></div>
                    </div>
                    <div class="skeleton-text skeleton-description"></div>
                    <div class="skeleton-rules"></div>
                    <div class="skeleton-buttons">
                        <div class="skeleton-button"></div>
                        <div class="skeleton-button"></div>
                    </div>
                </div>
                <div class="skeleton-footer">
                    <div style="display: flex; align-items: center;">
                        <div class="skeleton-avatar"></div>
                        <div class="skeleton-text skeleton-author"></div>
                    </div>
                    <div class="skeleton-actions">
                        <div class="skeleton-action"></div>
                        <div class="skeleton-action"></div>
                    </div>
                </div>
            </div>

            <div class="skeleton-card">
                <div class="skeleton-header">
                    <div class="skeleton-icon"></div>
                    <div>
                        <div class="skeleton-text skeleton-title"></div>
                        <div class="skeleton-text skeleton-category"></div>
                    </div>
                </div>
                <div class="skeleton-body">
                    <div class="skeleton-text skeleton-time"></div>
                    <div class="skeleton-rewards">
                        <div class="skeleton-reward"></div>
                        <div class="skeleton-reward"></div>
                    </div>
                    <div class="skeleton-text skeleton-description"></div>
                    <div class="skeleton-rules"></div>
                    <div class="skeleton-buttons">
                        <div class="skeleton-button"></div>
                        <div class="skeleton-button"></div>
                    </div>
                </div>
                <div class="skeleton-footer">
                    <div style="display: flex; align-items: center;">
                        <div class="skeleton-avatar"></div>
                        <div class="skeleton-text skeleton-author"></div>
                    </div>
                    <div class="skeleton-actions">
                        <div class="skeleton-action"></div>
                        <div class="skeleton-action"></div>
                    </div>
                </div>
            </div>

            <div class="skeleton-card">
                <div class="skeleton-header">
                    <div class="skeleton-icon"></div>
                    <div>
                        <div class="skeleton-text skeleton-title"></div>
                        <div class="skeleton-text skeleton-category"></div>
                    </div>
                </div>
                <div class="skeleton-body">
                    <div class="skeleton-text skeleton-time"></div>
                    <div class="skeleton-rewards">
                        <div class="skeleton-reward"></div>
                        <div class="skeleton-reward"></div>
                    </div>
                    <div class="skeleton-text skeleton-description"></div>
                    <div class="skeleton-rules"></div>
                    <div class="skeleton-buttons">
                        <div class="skeleton-button"></div>
                        <div class="skeleton-button"></div>
                    </div>
                </div>
                <div class="skeleton-footer">
                    <div style="display: flex; align-items: center;">
                        <div class="skeleton-avatar"></div>
                        <div class="skeleton-text skeleton-author"></div>
                    </div>
                    <div class="skeleton-actions">
                        <div class="skeleton-action"></div>
                        <div class="skeleton-action"></div>
                    </div>
                </div>
            </div>

            <div class="skeleton-card">
                <div class="skeleton-header">
                    <div class="skeleton-icon"></div>
                    <div>
                        <div class="skeleton-text skeleton-title"></div>
                        <div class="skeleton-text skeleton-category"></div>
                    </div>
                </div>
                <div class="skeleton-body">
                    <div class="skeleton-text skeleton-time"></div>
                    <div class="skeleton-rewards">
                        <div class="skeleton-reward"></div>
                        <div class="skeleton-reward"></div>
                    </div>
                    <div class="skeleton-text skeleton-description"></div>
                    <div class="skeleton-rules"></div>
                    <div class="skeleton-buttons">
                        <div class="skeleton-button"></div>
                        <div class="skeleton-button"></div>
                    </div>
                </div>
                <div class="skeleton-footer">
                    <div style="display: flex; align-items: center;">
                        <div class="skeleton-avatar"></div>
                        <div class="skeleton-text skeleton-author"></div>
                    </div>
                    <div class="skeleton-actions">
                        <div class="skeleton-action"></div>
                        <div class="skeleton-action"></div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 真实卡片 -->
        <div id="real-cards" class="link-cards" style="display: none;">
            <!-- 卡片 1 -->
            <div class="card" data-category="cloud">
                <div class="card-header">
                    <div class="app-icon">
                        <i class="fab fa-google-drive"></i>
                    </div>
                    <div class="app-info">
                        <h3>百度网盘</h3>
                        <span class="category">网盘存储</span>
                    </div>
                </div>
                <div class="card-body">
                    <div class="time-info">
                        <span>发布于 2023-11-10</span>
                        <span>剩余 45 天</span>
                    </div>

                    <div class="rewards">
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-user-plus"></i></div>
                            <div class="reward-title">邀请者奖励</div>
                            <div class="reward-value">20元现金</div>
                        </div>
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-gift"></i></div>
                            <div class="reward-title">新用户奖励</div>
                            <div class="reward-value">7天会员</div>
                        </div>
                    </div>

                    <div class="description">
                        百度网盘最新拉新活动！成功邀请新用户注册并完成首次上传，您可获得20元现金奖励。
                    </div>

                    <div class="rules">
                        <h4>活动规则：</h4>
                        <ul>
                            <li>新用户需完成手机验证</li>
                            <li>被邀请人需上传文件</li>
                            <li>活动截止：2023-12-31</li>
                        </ul>
                    </div>

                    <div class="card-buttons">
                        <div class="copy-btn">
                            <i class="fas fa-copy"></i> 复制邀请链接
                        </div>
                        <div class="view-btn" data-app="百度网盘">
                            <i class="fas fa-eye"></i> 查看详细内容
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <div class="author">
                        <div class="author-avatar">T</div>
                        <span class="author-name">TechLover</span>
                    </div>
                    <div class="actions">
                        <div class="action-btn like-btn">
                            <i class="fas fa-heart"></i> <span class="like-count">142</span>
                        </div>
                        <div class="action-btn comment-btn">
                            <i class="fas fa-comment"></i> 24
                        </div>
                    </div>
                </div>
            </div>

            <!-- 卡片 2 -->
            <div class="card" data-category="life">
                <div class="card-header">
                    <div class="app-icon" style="background: linear-gradient(135deg, #ff6b6b, #ff8e8e);">
                        <i class="fas fa-shopping-bag"></i>
                    </div>
                    <div class="app-info">
                        <h3>美团外卖</h3>
                        <span class="category">外卖生活</span>
                    </div>
                </div>
                <div class="card-body">
                    <div class="time-info">
                        <span>发布于 2023-11-05</span>
                        <span>剩余 20 天</span>
                    </div>

                    <div class="rewards">
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-user-plus"></i></div>
                            <div class="reward-title">邀请者奖励</div>
                            <div class="reward-value">30元红包</div>
                        </div>
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-gift"></i></div>
                            <div class="reward-title">新用户奖励</div>
                            <div class="reward-value">25元礼包</div>
                        </div>
                    </div>

                    <div class="description">
                        美团外卖限时拉新活动！邀请好友首次下单，您可获得30元无门槛红包。
                    </div>

                    <div class="rules">
                        <h4>活动规则：</h4>
                        <ul>
                            <li>被邀请人需为新用户</li>
                            <li>首单实付≥15元</li>
                            <li>仅限部分城市</li>
                        </ul>
                    </div>

                    <div class="card-buttons">
                        <div class="copy-btn">
                            <i class="fas fa-copy"></i> 复制邀请链接
                        </div>
                        <div class="view-btn" data-app="美团外卖">
                            <i class="fas fa-eye"></i> 查看详细内容
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <div class="author">
                        <div class="author-avatar">F</div>
                        <span class="author-name">FoodMaster</span>
                    </div>
                    <div class="actions">
                        <div class="action-btn report-btn">
                            <i class="fas fa-flag"></i>
                        </div>
                        <div class="action-btn like-btn">
                            <i class="fas fa-heart"></i> <span class="like-count">89</span>
                        </div>
                        <div class="action-btn comment-btn">
                            <i class="fas fa-comment"></i> 15
                        </div>
                    </div>
                </div>
            </div>

            <!-- 卡片 3 -->
            <div class="card" data-category="finance">
                <div class="card-header">
                    <div class="app-icon" style="background: linear-gradient(135deg, #20c997, #38d9a9);">
                        <i class="fas fa-wallet"></i>
                    </div>
                    <div class="app-info">
                        <h3>支付宝</h3>
                        <span class="category">金融支付</span>
                    </div>
                </div>
                <div class="card-body">
                    <div class="time-info">
                        <span>发布于 2023-11-01</span>
                        <span>剩余 30 天</span>
                    </div>

                    <div class="rewards">
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-user-plus"></i></div>
                            <div class="reward-title">邀请者奖励</div>
                            <div class="reward-value">15元+抽奖</div>
                        </div>
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-gift"></i></div>
                            <div class="reward-title">新用户奖励</div>
                            <div class="reward-value">10元红包</div>
                        </div>
                    </div>

                    <div class="description">
                        支付宝邀请新用户活动！成功邀请好友注册并完成认证，您可获得15元现金奖励+抽奖机会。
                    </div>

                    <div class="rules">
                        <h4>活动规则：</h4>
                        <ul>
                            <li>需完成实名认证</li>
                            <li>需绑定银行卡</li>
                            <li>每人最多邀请10人</li>
                        </ul>
                    </div>

                    <div class="card-buttons">
                        <div class="copy-btn">
                            <i class="fas fa-copy"></i> 复制邀请链接
                        </div>
                        <div class="view-btn" data-app="支付宝">
                            <i class="fas fa-eye"></i> 查看详细内容
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <div class="author">
                        <div class="author-avatar">F</div>
                        <span class="author-name">FinanceGuru</span>
                    </div>
                    <div class="actions">
                        <div class="action-btn like-btn">
                            <i class="fas fa-heart"></i> <span class="like-count">203</span>
                        </div>
                        <div class="action-btn comment-btn">
                            <i class="fas fa-comment"></i> 32
                        </div>
                    </div>
                </div>
            </div>

            <!-- 卡片 4 -->
            <div class="card" data-category="social">
                <div class="card-header">
                    <div class="app-icon" style="background: linear-gradient(135deg, #be4bdb, #e599f7);">
                        <i class="fas fa-video"></i>
                    </div>
                    <div class="app-info">
                        <h3>腾讯视频VIP</h3>
                        <span class="category">娱乐影音</span>
                    </div>
                </div>
                <div class="card-body">
                    <div class="time-info">
                        <span>发布于 2023-10-28</span>
                        <span>长期有效</span>
                    </div>

                    <div class="rewards">
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-user-plus"></i></div>
                            <div class="reward-title">邀请者奖励</div>
                            <div class="reward-value">月卡</div>
                        </div>
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-gift"></i></div>
                            <div class="reward-title">新用户奖励</div>
                            <div class="reward-value">7天VIP</div>
                        </div>
                    </div>

                    <div class="description">
                        邀请好友开通腾讯视频VIP会员，您可获得1个月VIP会员，好友可获得7天VIP体验。
                    </div>

                    <div class="rules">
                        <h4>活动规则：</h4>
                        <ul>
                            <li>好友需是新用户</li>
                            <li>需开通连续包月</li>
                            <li>活动长期有效</li>
                        </ul>
                    </div>

                    <div class="card-buttons">
                        <div class="copy-btn">
                            <i class="fas fa-copy"></i> 复制邀请链接
                        </div>
                        <div class="view-btn" data-app="腾讯视频VIP">
                            <i class="fas fa-eye"></i> 查看详细内容
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <div class="author">
                        <div class="author-avatar">M</div>
                        <span class="author-name">MovieLover</span>
                    </div>
                    <div class="actions">
                        <div class="action-btn like-btn">
                            <i class="fas fa-heart"></i> <span class="like-count">76</span>
                        </div>
                        <div class="action-btn comment-btn">
                            <i class="fas fa-comment"></i> 18
                        </div>
                    </div>
                </div>
            </div>

            <!-- 卡片 5 -->
            <div class="card" data-category="travel">
                <div class="card-header">
                    <div class="app-icon" style="background: linear-gradient(135deg, #fd7e14, #ffa94d);">
                        <i class="fas fa-plane"></i>
                    </div>
                    <div class="app-info">
                        <h3>携程旅行</h3>
                        <span class="category">旅行出行</span>
                    </div>
                </div>
                <div class="card-body">
                    <div class="time-info">
                        <span>发布于 2023-10-25</span>
                        <span>剩余 60 天</span>
                    </div>

                    <div class="rewards">
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-user-plus"></i></div>
                            <div class="reward-title">邀请者奖励</div>
                            <div class="reward-value">100元券</div>
                        </div>
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-gift"></i></div>
                            <div class="reward-title">新用户奖励</div>
                            <div class="reward-value">200元礼包</div>
                        </div>
                    </div>

                    <div class="description">
                        邀请好友注册携程，好友完成首单后，您可获得100元酒店券，好友可获得200元新人礼包。
                    </div>

                    <div class="rules">
                        <h4>活动规则：</h4>
                        <ul>
                            <li>好友需完成首单</li>
                            <li>订单金额≥300元</li>
                            <li>券有效期30天</li>
                        </ul>
                    </div>

                    <div class="card-buttons">
                        <div class="copy-btn">
                            <i class="fas fa-copy"></i> 复制邀请链接
                        </div>
                        <div class="view-btn" data-app="携程旅行">
                            <i class="fas fa-eye"></i> 查看详细内容
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <div class="author">
                        <div class="author-avatar">T</div>
                        <span class="author-name">Traveler</span>
                    </div>
                    <div class="actions">
                        <div class="action-btn like-btn">
                            <i class="fas fa-heart"></i> <span class="like-count">54</span>
                        </div>
                        <div class="action-btn comment-btn">
                            <i class="fas fa-comment"></i> 9
                        </div>
                    </div>
                </div>
            </div>

            <!-- 卡片 6 -->
            <div class="card" data-category="social">
                <div class="card-header">
                    <div class="app-icon" style="background: linear-gradient(135deg, #40c057, #69db7c);">
                        <i class="fas fa-music"></i>
                    </div>
                    <div class="app-info">
                        <h3>网易云音乐</h3>
                        <span class="category">娱乐影音</span>
                    </div>
                </div>
                <div class="card-body">
                    <div class="time-info">
                        <span>发布于 2023-10-20</span>
                        <span>剩余 40 天</span>
                    </div>

                    <div class="rewards">
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-user-plus"></i></div>
                            <div class="reward-title">邀请者奖励</div>
                            <div class="reward-value">3个月VIP</div>
                        </div>
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-gift"></i></div>
                            <div class="reward-title">新用户奖励</div>
                            <div class="reward-value">1个月VIP</div>
                        </div>
                    </div>

                    <div class="description">
                        邀请3位好友开通黑胶VIP，您可获得3个月VIP会员，每位好友可获得1个月VIP。
                    </div>

                    <div class="rules">
                        <h4>活动规则：</h4>
                        <ul>
                            <li>好友需开通连续包月</li>
                            <li>需保持订阅30天</li>
                            <li>奖励次月发放</li>
                        </ul>
                    </div>

                    <div class="card-buttons">
                        <div class="copy-btn">
                            <i class="fas fa-copy"></i> 复制邀请链接
                        </div>
                        <div class="view-btn" data-app="网易云音乐">
                            <i class="fas fa-eye"></i> 查看详细内容
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <div class="author">
                        <div class="author-avatar">M</div>
                        <span class="author-name">MusicFan</span>
                    </div>
                    <div class="actions">
                        <div class="action-btn like-btn">
                            <i class="fas fa-heart"></i> <span class="like-count">121</span>
                        </div>
                        <div class="action-btn comment-btn">
                            <i class="fas fa-comment"></i> 27
                        </div>
                    </div>
                </div>
            </div>

            <!-- 卡片 7 -->
            <div class="card" data-category="cloud">
                <div class="card-header">
                    <div class="app-icon" style="background: linear-gradient(135deg, #228be6, #74c0fc);">
                        <i class="fas fa-cloud"></i>
                    </div>
                    <div class="app-info">
                        <h3>阿里云盘</h3>
                        <span class="category">网盘存储</span>
                    </div>
                </div>
                <div class="card-body">
                    <div class="time-info">
                        <span>发布于 2023-10-15</span>
                        <span>长期有效</span>
                    </div>

                    <div class="rewards">
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-user-plus"></i></div>
                            <div class="reward-title">邀请者奖励</div>
                            <div class="reward-value">500GB</div>
                        </div>
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-gift"></i></div>
                            <div class="reward-title">新用户奖励</div>
                            <div class="reward-value">1TB空间</div>
                        </div>
                    </div>

                    <div class="description">
                        邀请好友注册阿里云盘，好友完成手机验证后，您可获得500GB永久空间，好友可获得1TB空间。
                    </div>

                    <div class="rules">
                        <h4>活动规则：</h4>
                        <ul>
                            <li>好友需完成手机验证</li>
                            <li>需下载App登录</li>
                            <li>空间永久有效</li>
                        </ul>
                    </div>

                    <div class="card-buttons">
                        <div class="copy-btn">
                            <i class="fas fa-copy"></i> 复制邀请链接
                        </div>
                        <div class="view-btn" data-app="阿里云盘">
                            <i class="fas fa-eye"></i> 查看详细内容
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <div class="author">
                        <div class="author-avatar">C</div>
                        <span class="author-name">CloudUser</span>
                    </div>
                    <div class="actions">
                        <div class="action-btn like-btn">
                            <i class="fas fa-heart"></i> <span class="like-count">98</span>
                        </div>
                        <div class="action-btn comment-btn">
                            <i class="fas fa-comment"></i> 21
                        </div>
                    </div>
                </div>
            </div>

            <!-- 卡片 8 -->
            <div class="card" data-category="education">
                <div class="card-header">
                    <div class="app-icon" style="background: linear-gradient(135deg, #fab005, #ffd43b);">
                        <i class="fas fa-book"></i>
                    </div>
                    <div class="app-info">
                        <h3>得到App</h3>
                        <span class="category">学习办公</span>
                    </div>
                </div>
                <div class="card-body">
                    <div class="time-info">
                        <span>发布于 2023-10-10</span>
                        <span>剩余 25 天</span>
                    </div>

                    <div class="rewards">
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-user-plus"></i></div>
                            <div class="reward-title">邀请者奖励</div>
                            <div class="reward-value">50元券</div>
                        </div>
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-gift"></i></div>
                            <div class="reward-title">新用户奖励</div>
                            <div class="reward-value">3门课程</div>
                        </div>
                    </div>

                    <div class="description">
                        邀请好友注册得到App，好友购买任意课程后，您可获得50元优惠券，好友可免费领取3门精选课程。
                    </div>

                    <div class="rules">
                        <h4>活动规则：</h4>
                        <ul>
                            <li>好友需完成注册</li>
                            <li>好友需购买≥99元课程</li>
                            <li>优惠券30天内有效</li>
                        </ul>
                    </div>

                    <div class="card-buttons">
                        <div class="copy-btn">
                            <i class="fas fa-copy"></i> 复制邀请链接
                        </div>
                        <div class="view-btn" data-app="得到App">
                            <i class="fas fa-eye"></i> 查看详细内容
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <div class="author">
                        <div class="author-avatar">K</div>
                        <span class="author-name">KnowledgeSeeker</span>
                    </div>
                    <div class="actions">
                        <div class="action-btn like-btn">
                            <i class="fas fa-heart"></i> <span class="like-count">67</span>
                        </div>
                        <div class="action-btn comment-btn">
                            <i class="fas fa-comment"></i> 14
                        </div>
                    </div>
                </div>
            </div>

            <!-- 卡片 9 -->
            <div class="card" data-category="travel">
                <div class="card-header">
                    <div class="app-icon" style="background: linear-gradient(135deg, #f76707, #ff922b);">
                        <i class="fas fa-car"></i>
                    </div>
                    <div class="app-info">
                        <h3>滴滴出行</h3>
                        <span class="category">旅行出行</span>
                    </div>
                </div>
                <div class="card-body">
                    <div class="time-info">
                        <span>发布于 2023-10-05</span>
                        <span>剩余 15 天</span>
                    </div>

                    <div class="rewards">
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-user-plus"></i></div>
                            <div class="reward-title">邀请者奖励</div>
                            <div class="reward-value">30元券</div>
                        </div>
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-gift"></i></div>
                            <div class="reward-title">新用户奖励</div>
                            <div class="reward-value">50元礼包</div>
                        </div>
                    </div>

                    <div class="description">
                        邀请好友注册滴滴出行，好友完成首单后，您可获得30元打车券，好友可获得50元新人礼包。
                    </div>

                    <div class="rules">
                        <h4>活动规则：</h4>
                        <ul>
                            <li>好友需完成手机验证</li>
                            <li>首单金额≥15元</li>
                            <li>券有效期15天</li>
                        </ul>
                    </div>

                    <div class="card-buttons">
                        <div class="copy-btn">
                            <i class="fas fa-copy"></i> 复制邀请链接
                        </div>
                        <div class="view-btn" data-app="滴滴出行">
                            <i class="fas fa-eye"></i> 查看详细内容
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <div class="author">
                        <div class="author-avatar">C</div>
                        <span class="author-name">CityDriver</span>
                    </div>
                    <div class="actions">
                        <div class="action-btn like-btn">
                            <i class="fas fa-heart"></i> <span class="like-count">83</span>
                        </div>
                        <div class="action-btn comment-btn">
                            <i class="fas fa-comment"></i> 19
                        </div>
                    </div>
                </div>
            </div>

            <!-- 卡片 10 -->
            <div class="card expired" data-category="shopping">
                <div class="card-header">
                    <div class="app-icon" style="background: linear-gradient(135deg, #e03131, #ff6b6b);">
                        <i class="fas fa-shopping-cart"></i>
                    </div>
                    <div class="app-info">
                        <h3>拼多多</h3>
                        <span class="category">电商购物</span>
                    </div>
                </div>
                <div class="card-body">
                    <div class="time-info">
                        <span>发布于 2023-09-15</span>
                        <span>已过期</span>
                    </div>

                    <div class="rewards">
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-user-plus"></i></div>
                            <div class="reward-title">邀请者奖励</div>
                            <div class="reward-value">20元现金</div>
                        </div>
                        <div class="reward">
                            <div class="reward-icon"><i class="fas fa-gift"></i></div>
                            <div class="reward-title">新用户奖励</div>
                            <div class="reward-value">30元券</div>
                        </div>
                    </div>

                    <div class="description">
                        邀请好友注册拼多多，好友完成首单后，您可获得20元现金奖励，好友可获得30元优惠券包。
                    </div>

                    <div class="rules">
                        <h4>活动规则：</h4>
                        <ul>
                            <li>好友需完成首单</li>
                            <li>订单金额≥30元</li>
                            <li>现金提现无门槛</li>
                        </ul>
                    </div>

                    <div class="card-buttons">
                        <div class="copy-btn" disabled>
                            <i class="fas fa-copy"></i> 活动已结束
                        </div>
                        <div class="view-btn" data-app="拼多多">
                            <i class="fas fa-eye"></i> 查看详细内容
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <div class="author">
                        <div class="author-avatar">S</div>
                        <span class="author-name">SuperSaver</span>
                    </div>
                    <div class="actions">
                        <div class="action-btn like-btn">
                            <i class="fas fa-heart"></i> <span class="like-count">112</span>
                        </div>
                        <div class="action-btn comment-btn">
                            <i class="fas fa-comment"></i> 23
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 分页 -->
        <div class="pagination">
            <button class="pagination-btn" id="prev-page">
                <i class="fas fa-chevron-left"></i>
            </button>
            <button class="pagination-btn active">1</button>
            <button class="pagination-btn">2</button>
            <button class="pagination-btn">3</button>
            <button class="pagination-btn">4</button>
            <button class="pagination-btn" id="next-page">
                <i class="fas fa-chevron-right"></i>
            </button>
        </div>
    </div>

    <!-- 活动详情模态框 -->
    <div id="activity-modal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <div class="modal-header-content">
                    <div class="modal-icon" id="modal-icon">
                        <i class="fab fa-google-drive"></i>
                    </div>
                    <div class="modal-title-container">
                        <h3 id="modal-title">百度网盘</h3>
                        <span class="modal-category" id="modal-category">网盘存储</span>
                    </div>
                </div>
                <button class="modal-close" id="close-modal">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            <div class="modal-body">
                <div class="modal-section">
                    <h4><i class="far fa-calendar-alt"></i> 活动时间</h4>
                    <div class="modal-time" id="modal-time">
                        活动时间：2023-11-01 至 2023-12-31
                    </div>
                </div>

                <div class="modal-section">
                    <h4><i class="fas fa-gift"></i> 活动奖励</h4>
                    <div class="rewards-modal">
                        <div class="reward-modal">
                            <div class="reward-modal-icon">
                                <i class="fas fa-user-plus"></i>
                            </div>
                            <div class="reward-modal-title">邀请者奖励</div>
                            <div class="reward-modal-value" id="inviter-reward">20元现金</div>
                        </div>
                        <div class="reward-modal">
                            <div class="reward-modal-icon">
                                <i class="fas fa-gift"></i>
                            </div>
                            <div class="reward-modal-title">新用户奖励</div>
                            <div class="reward-modal-value" id="newuser-reward">7天会员</div>
                        </div>
                    </div>
                </div>

                <div class="modal-section">
                    <h4><i class="fas fa-info-circle"></i> 活动介绍</h4>
                    <div class="description-modal" id="modal-description">
                        百度网盘最新拉新活动！成功邀请新用户注册并完成首次上传，您可获得20元现金奖励。百度网盘是一款优秀的云存储服务，提供文件同步、备份和共享功能，方便用户随时随地访问自己的文件。参与本次活动，不仅能获得现金奖励，还能帮助好友获得7天会员体验，享受更多高级功能。
                    </div>
                </div>

                <div class="modal-section">
                    <h4><i class="fas fa-list-alt"></i> 活动规则</h4>
                    <div class="rules-modal" id="modal-rules">
                        <ul>
                            <li>新用户需完成手机验证并注册百度网盘账号</li>
                            <li>被邀请人需上传至少一个文件到网盘</li>
                            <li>邀请者奖励将在被邀请人完成任务后24小时内发放到百度网盘账户</li>
                            <li>新用户奖励将在注册成功后自动发放</li>
                            <li>每个用户最多可邀请50位新用户参与活动</li>
                            <li>活动截止时间：2023-12-31 23:59:59</li>
                            <li>本活动最终解释权归百度网盘官方所有</li>
                        </ul>
                    </div>
                </div>

                <div class="modal-section">
                    <h4><i class="fas fa-lightbulb"></i> 参与步骤</h4>
                    <div class="rules-modal">
                        <ul>
                            <li>点击"复制邀请链接"按钮，获取您的专属邀请链接</li>
                            <li>将邀请链接分享给未注册过百度网盘的好友</li>
                            <li>好友通过您的链接注册并完成手机验证</li>
                            <li>好友上传至少一个文件到百度网盘</li>
                            <li>完成以上步骤后，奖励将自动发放</li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-outline" id="modal-copy-btn">
                    <i class="fas fa-copy"></i> 复制邀请链接
                </button>
                <button class="btn btn-primary" id="modal-share-btn">
                    <i class="fas fa-share-alt"></i> 分享给好友
                </button>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-column">
                    <h4>关于 LinkHub</h4>
                    <ul>
                        <li><a href="#">平台介绍</a></li>
                        <li><a href="#">团队故事</a></li>
                        <li><a href="#">加入我们</a></li>
                        <li><a href="#">媒体报道</a></li>
                    </ul>
                </div>
                <div class="footer-column">
                    <h4>使用帮助</h4>
                    <ul>
                        <li><a href="#">新手指南</a></li>
                        <li><a href="#">常见问题</a></li>
                        <li><a href="#">发布规范</a></li>
                        <li><a href="#">奖励说明</a></li>
                    </ul>
                </div>
                <div class="footer-column">
                    <h4>政策条款</h4>
                    <ul>
                        <li><a href="#">用户协议</a></li>
                        <li><a href="#">隐私政策</a></li>
                        <li><a href="#">免责声明</a></li>
                        <li><a href="#">举报机制</a></li>
                    </ul>
                </div>
                <div class="footer-column">
                    <h4>联系我们</h4>
                    <ul>
                        <li><a href="#"><i class="fas fa-envelope"></i> contact@linkhub.com</a></li>
                        <li><a href="#"><i class="fab fa-weixin"></i> 官方微信</a></li>
                        <li><a href="#"><i class="fab fa-weibo"></i> 官方微博</a></li>
                        <li><a href="#"><i class="fas fa-headset"></i> 在线客服</a></li>
                    </ul>
                </div>
            </div>
            <div class="copyright">
                &copy; 2023 LinkHub 拉新活动分享平台 | 让邀请变得更简单
            </div>
        </div>
    </footer>

    <script>
        // 页面加载完成后执行
        document.addEventListener('DOMContentLoaded', function () {
            // 初始化骨架屏和真实内容
            setTimeout(() => {
                document.getElementById('skeleton-container').style.display = 'none';
                document.getElementById('real-cards').style.display = 'grid';

                // 添加渐入动画
                const cards = document.querySelectorAll('.card');
                cards.forEach((card, index) => {
                    setTimeout(() => {
                        card.classList.add('slide-up');
                    }, 100 * index);
                });
            }, 1500);

            // 生成独特的用户头像颜色
            document.querySelectorAll('.author-avatar').forEach(avatar => {
                const authorName = avatar.nextElementSibling.textContent;
                let hash = 0;
                for (let i = 0; i < authorName.length; i++) {
                    hash = authorName.charCodeAt(i) + ((hash << 5) - hash);
                }

                // 将哈希值转换为HSL颜色
                const hue = Math.abs(hash % 360);
                avatar.style.backgroundColor = `hsl(${hue}, 70%, 60%)`;
            });

            // 搜索建议数据
            const mockSuggestions = [
                { text: '百度网盘', icon: 'fab fa-google-drive', category: 'cloud' },
                { text: '美团外卖', icon: 'fas fa-shopping-bag', category: 'life' },
                { text: '支付宝', icon: 'fas fa-wallet', category: 'finance' },
                { text: '腾讯视频', icon: 'fas fa-video', category: 'social' },
                { text: '网易云音乐', icon: 'fas fa-music', category: 'social' },
                { text: '携程旅行', icon: 'fas fa-plane', category: 'travel' },
                { text: '京东购物', icon: 'fas fa-shopping-cart', category: 'shopping' },
                { text: '滴滴出行', icon: 'fas fa-car', category: 'travel' },
                { text: '网易有道', icon: 'fas fa-book', category: 'education' }
            ];

            // 搜索建议功能
            const searchInput = document.getElementById('search-input');
            const suggestionsContainer = document.getElementById('search-suggestions');

            searchInput.addEventListener('input', function () {
                const value = this.value.trim().toLowerCase();
                suggestionsContainer.innerHTML = '';

                if (value) {
                    const filtered = mockSuggestions.filter(item =>
                        item.text.toLowerCase().includes(value)
                    );

                    if (filtered.length > 0) {
                        filtered.forEach(item => {
                            const div = document.createElement('div');
                            div.className = 'suggestion-item';
                            div.innerHTML = `<i class="${item.icon}"></i> ${item.text}`;
                            div.dataset.category = item.category;
                            suggestionsContainer.appendChild(div);
                        });
                        suggestionsContainer.classList.add('show');
                    } else {
                        suggestionsContainer.classList.remove('show');
                    }
                } else {
                    suggestionsContainer.classList.remove('show');
                }
            });

            // 点击建议项
            suggestionsContainer.addEventListener('click', function (e) {
                if (e.target.classList.contains('suggestion-item')) {
                    const category = e.target.dataset.category;
                    searchInput.value = e.target.textContent;
                    suggestionsContainer.classList.remove('show');

                    // 过滤对应分类
                    document.querySelectorAll('.category-btn').forEach(btn => {
                        btn.classList.remove('active');
                        if (btn.dataset.category === category) {
                            btn.classList.add('active');
                        }
                    });

                    filterCardsByCategory(category);
                }
            });

            // 点击其他地方隐藏建议
            document.addEventListener('click', function (e) {
                if (!e.target.closest('.search-box')) {
                    suggestionsContainer.classList.remove('show');
                }
            });

            // 分类按钮点击事件
            document.querySelectorAll('.category-btn').forEach(button => {
                button.addEventListener('click', function () {
                    document.querySelectorAll('.category-btn').forEach(btn => {
                        btn.classList.remove('active');
                    });
                    this.classList.add('active');

                    const category = this.dataset.category;
                    filterCardsByCategory(category);
                });
            });

            // 按分类过滤卡片
            function filterCardsByCategory(category) {
                const cards = document.querySelectorAll('.card');
                const emptyState = document.querySelector('.empty-state');
                let visibleCount = 0;

                cards.forEach(card => {
                    if (category === 'all' || card.dataset.category === category) {
                        card.style.display = 'flex';
                        visibleCount++;
                    } else {
                        card.style.display = 'none';
                    }
                });

                // 更新卡片计数
                document.querySelector('.cards-count').textContent = `${visibleCount}个活动`;

                // 显示/隐藏空状态
                if (visibleCount === 0) {
                    emptyState.classList.add('show');
                } else {
                    emptyState.classList.remove('show');
                }
            }

            // 重置筛选按钮
            document.getElementById('reset-filters').addEventListener('click', function () {
                document.querySelectorAll('.category-btn').forEach(btn => {
                    btn.classList.remove('active');
                    if (btn.dataset.category === 'all') {
                        btn.classList.add('active');
                    }
                });

                filterCardsByCategory('all');
                searchInput.value = '';
            });

            // 复制按钮功能
            document.querySelectorAll('.copy-btn').forEach(button => {
                if (!button.disabled) {
                    button.addEventListener('click', function () {
                        const originalText = this.innerHTML;
                        const originalBg = this.style.backgroundColor;

                        // 显示加载状态
                        this.innerHTML = '<div class="loading-indicator"></div> 复制中...';

                        // 复制到剪贴板
                        navigator.clipboard.writeText('https://linkhub.example.com/invite/' + Math.random().toString(36).substring(2, 10))
                            .then(() => {
                                this.innerHTML = '<i class="fas fa-check"></i> 已复制';
                                this.style.backgroundColor = '#10b981';

                                // 添加成功动画
                                this.classList.add('pulse');

                                setTimeout(() => {
                                    this.innerHTML = originalText;
                                    this.style.backgroundColor = originalBg;
                                    this.classList.remove('pulse');
                                }, 2000);
                            })
                            .catch(err => {
                                console.error('复制失败: ', err);
                                this.innerHTML = '<i class="fas fa-exclamation"></i> 复制失败';
                                this.style.backgroundColor = '#ef4444';

                                setTimeout(() => {
                                    this.innerHTML = originalText;
                                    this.style.backgroundColor = originalBg;
                                }, 2000);
                            });
                    });
                }
            });

            // 模态框复制按钮
            document.getElementById('modal-copy-btn').addEventListener('click', function () {
                const originalText = this.innerHTML;

                // 显示加载状态
                this.innerHTML = '<div class="loading-indicator"></div> 复制中...';

                // 复制到剪贴板
                navigator.clipboard.writeText('https://linkhub.example.com/invite/' + Math.random().toString(36).substring(2, 10))
                    .then(() => {
                        this.innerHTML = '<i class="fas fa-check"></i> 已复制';

                        // 添加成功动画
                        this.classList.add('pulse');

                        setTimeout(() => {
                            this.innerHTML = originalText;
                            this.classList.remove('pulse');
                        }, 2000);
                    })
                    .catch(err => {
                        console.error('复制失败: ', err);
                        this.innerHTML = '<i class="fas fa-exclamation"></i> 复制失败';

                        setTimeout(() => {
                            this.innerHTML = originalText;
                        }, 2000);
                    });
            });

            // 模态框分享按钮
            document.getElementById('modal-share-btn').addEventListener('click', function () {
                alert('分享选项：\n1. 微信好友\n2. 朋友圈\n3. QQ好友\n4. 复制链接');
            });

            // 查看内容按钮功能
            document.querySelectorAll('.view-btn').forEach(button => {
                button.addEventListener('click', function () {
                    const appName = this.dataset.app;
                    const modal = document.getElementById('activity-modal');

                    // 设置模态框内容
                    document.getElementById('modal-title').textContent = appName;

                    // 根据应用名称设置内容
                    switch (appName) {
                        case '百度网盘':
                            document.getElementById('modal-icon').innerHTML = '<i class="fab fa-google-drive"></i>';
                            document.getElementById('modal-icon').style.background = 'linear-gradient(135deg, #6b8cbc, #4a6fa5)';
                            document.getElementById('modal-category').textContent = '网盘存储';
                            document.getElementById('inviter-reward').textContent = '20元现金';
                            document.getElementById('newuser-reward').textContent = '7天会员';
                            document.getElementById('modal-time').textContent = '活动时间：2023-11-01 至 2023-12-31';
                            document.getElementById('modal-description').textContent = '百度网盘最新拉新活动！成功邀请新用户注册并完成首次上传，您可获得20元现金奖励。百度网盘是一款优秀的云存储服务，提供文件同步、备份和共享功能，方便用户随时随地访问自己的文件。参与本次活动，不仅能获得现金奖励，还能帮助好友获得7天会员体验，享受更多高级功能。';
                            break;
                        case '美团外卖':
                            document.getElementById('modal-icon').innerHTML = '<i class="fas fa-shopping-bag"></i>';
                            document.getElementById('modal-icon').style.background = 'linear-gradient(135deg, #ff6b6b, #ff8e8e)';
                            document.getElementById('modal-category').textContent = '外卖生活';
                            document.getElementById('inviter-reward').textContent = '30元红包';
                            document.getElementById('newuser-reward').textContent = '25元礼包';
                            document.getElementById('modal-time').textContent = '活动时间：2023-11-10 至 2023-11-30';
                            document.getElementById('modal-description').textContent = '美团外卖限时拉新活动！邀请好友首次下单，您可获得30元无门槛红包。美团外卖提供丰富的餐饮选择和快速配送服务，新用户注册即可获得25元新人礼包，包含多张满减优惠券，让您的用餐更实惠。';
                            break;
                        case '支付宝':
                            document.getElementById('modal-icon').innerHTML = '<i class="fas fa-wallet"></i>';
                            document.getElementById('modal-icon').style.background = 'linear-gradient(135deg, #20c997, #38d9a9)';
                            document.getElementById('modal-category').textContent = '金融支付';
                            document.getElementById('inviter-reward').textContent = '15元+抽奖';
                            document.getElementById('newuser-reward').textContent = '10元红包';
                            document.getElementById('modal-time').textContent = '活动时间：2023-11-01 至 2023-11-30';
                            document.getElementById('modal-description').textContent = '支付宝邀请新用户活动！成功邀请好友注册并完成认证，您可获得15元现金奖励+抽奖机会。支付宝作为领先的移动支付平台，提供便捷的支付、转账、理财等服务，新用户完成实名认证还可获得10元红包，可用于多种消费场景。';
                            break;
                        // 其他应用设置...
                        default:
                            document.getElementById('modal-icon').innerHTML = '<i class="fas fa-info-circle"></i>';
                            document.getElementById('modal-icon').style.background = 'linear-gradient(135deg, var(--primary), var(--secondary))';
                            document.getElementById('modal-description').textContent = `${appName} 拉新活动详情。邀请好友参与活动，双方均可获得丰厚奖励。活动期间，成功邀请新用户完成指定任务，即可获得相应奖励。`;
                    }

                    modal.classList.add('show');
                    document.body.style.overflow = 'hidden'; // 防止背景滚动
                });
            });

            // 关闭模态框
            document.getElementById('close-modal').addEventListener('click', function () {
                const modal = document.getElementById('activity-modal');
                modal.classList.remove('show');
                document.body.style.overflow = ''; // 恢复滚动
            });

            // 点击模态框外部关闭
            window.addEventListener('click', function (e) {
                const modal = document.getElementById('activity-modal');
                if (e.target === modal) {
                    modal.classList.remove('show');
                    document.body.style.overflow = ''; // 恢复滚动
                }
            });

            // 收藏按钮功能
            document.querySelectorAll('.like-btn').forEach(btn => {
                btn.addEventListener('click', function () {
                    const countSpan = this.querySelector('.like-count');
                    let count = parseInt(countSpan.textContent);
                    const icon = this.querySelector('i');

                    if (this.classList.contains('favorited')) {
                        // 取消点赞
                        count--;
                        this.classList.remove('favorited');
                    } else {
                        // 点赞
                        count++;
                        this.classList.add('favorited');

                        // 添加点赞动画
                        icon.classList.add('pulse');
                        setTimeout(() => {
                            icon.classList.remove('pulse');
                        }, 1000);
                    }

                    countSpan.textContent = count;
                });
            });

            // 评论按钮功能
            document.querySelectorAll('.comment-btn').forEach(btn => {
                btn.addEventListener('click', function () {
                    const appName = this.closest('.card').querySelector('.app-info h3').textContent;
                    alert(`查看 ${appName} 的评论区`);
                });
            });

            // 举报按钮功能
            document.querySelectorAll('.report-btn').forEach(btn => {
                btn.addEventListener('click', function () {
                    if (confirm('确定要举报这个内容吗？\n举报原因：\n1. 内容虚假\n2. 已过期\n3. 垃圾信息\n4. 其他违规内容')) {
                        alert('举报已提交，我们会尽快处理');
                    }
                });
            });

            // 滚动时头部样式变化
            window.addEventListener('scroll', function () {
                const header = document.getElementById('main-header');
                if (window.scrollY > 50) {
                    header.classList.add('scrolled');
                } else {
                    header.classList.remove('scrolled');
                }
            });

            // 分页功能
            const paginationBtns = document.querySelectorAll('.pagination-btn:not(#prev-page):not(#next-page)');
            const prevBtn = document.getElementById('prev-page');
            const nextBtn = document.getElementById('next-page');
            let currentPage = 1;
            const totalPages = 4;

            function updatePagination() {
                paginationBtns.forEach((btn, index) => {
                    const pageNum = index + 1;
                    if (pageNum === currentPage) {
                        btn.classList.add('active');
                    } else {
                        btn.classList.remove('active');
                    }

                    btn.onclick = () => {
                        currentPage = pageNum;
                        updatePagination();
                        loadPageData(currentPage);
                    };
                });

                prevBtn.disabled = currentPage === 1;
                nextBtn.disabled = currentPage === totalPages;

                prevBtn.onclick = () => {
                    if (currentPage > 1) {
                        currentPage--;
                        updatePagination();
                        loadPageData(currentPage);
                    }
                };

                nextBtn.onclick = () => {
                    if (currentPage < totalPages) {
                        currentPage++;
                        updatePagination();
                        loadPageData(currentPage);
                    }
                };
            }

            // 加载页面数据动画
            function loadPageData(page) {
                const cardsContainer = document.querySelector('.link-cards');
                const realCards = document.getElementById('real-cards');
                const skeleton = document.getElementById('skeleton-container');
                const emptyState = document.querySelector('.empty-state');

                // 隐藏内容，显示骨架屏
                realCards.style.display = 'none';
                emptyState.classList.remove('show');
                skeleton.style.display = 'grid';

                // 模拟加载延迟
                setTimeout(() => {
                    skeleton.style.display = 'none';
                    realCards.style.display = 'grid';

                    // 滚动到顶部
                    window.scrollTo({
                        top: document.querySelector('.main-content').offsetTop - 100,
                        behavior: 'smooth'
                    });

                    // 添加动画效果
                    const cards = document.querySelectorAll('.card');
                    cards.forEach((card, index) => {
                        card.style.opacity = '0';
                        setTimeout(() => {
                            card.style.opacity = '1';
                            card.style.transform = 'translateY(0)';
                        }, 100 * index);
                    });
                }, 800);
            }

            // 初始化分页
            updatePagination();

            // 检查活动是否过期
            function checkActivityExpiry() {
                const cards = document.querySelectorAll('.card');
                const today = new Date();

                cards.forEach(card => {
                    const timeText = card.querySelector('.time-info span:last-child').textContent;
                    if (timeText.includes('已过期')) {
                        card.classList.add('expired');
                        const copyBtn = card.querySelector('.copy-btn');
                        copyBtn.disabled = true;
                        copyBtn.innerHTML = '<i class="fas fa-copy"></i> 活动已结束';
                    }
                });
            }

            // 初始化过期检查
            checkActivityExpiry();
        });
    </script>
</body>

</html>